package com.animals.dog.dogService;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
@Primary
@FeignClient(name = "cat", path = "/cat",fallback = CatClientFallback.class)
public interface CatClient {

  @RequestMapping(method = RequestMethod.GET, value = "/add")
  Integer add(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b);

  @RequestMapping(value = "/testpost",method = RequestMethod.POST)
  String testPost(@RequestBody String a);
}

